projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcda408
)
(math-use-emacs-fn): Make sure that the number is formatted correctly.
author
Jay Belanger
<jay.p.belanger@gmail.com>
Fri, 3 Jul 2009 01:54:14 +0000
(
01:54
+0000)
committer
Jay Belanger
<jay.p.belanger@gmail.com>
Fri, 3 Jul 2009 01:54:14 +0000
(
01:54
+0000)
lisp/calc/calc-math.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc-math.el
b/lisp/calc/calc-math.el
index c8e8cc1f052ea31a81ab67c4c0264c35c59af2ab..0f934e0af772db7d4b3f6cc28b1496618cc60908 100644
(file)
--- a/
lisp/calc/calc-math.el
+++ b/
lisp/calc/calc-math.el
@@
-106,7
+106,11
@@
If this can't be done, return NIL."
(number-to-string
(funcall fn
(string-to-number
- (let ((calc-number-radix 10))
+ (let
+ ((calc-number-radix 10)
+ (calc-float-format (list 'float calc-internal-prec))
+ (calc-group-digits nil)
+ (calc-point-char "."))
(math-format-number (math-float x)))))))
(error nil))))))